package com.lijiajian.dao;

import com.lijiajian.base.BaseMapper;
import com.lijiajian.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends BaseMapper<Role,Integer> {
    List<Map<String,Object>> selectAllRoles(Integer id);

    Role selectByName(String roleName);

    Integer updateBatchByIds(Integer[] roleIds);

    String[] selectRoleNames(Integer userId);
}